import axios from "@/axios/index";
export const getAllFinance=(params)=>{
    return axios({
        method:'get',
        url:'sys/finance/getAllFinance',
        params:params
    })
}

export const insertFinance=(params)=>{
    return axios({
        method:'post',
        url:'sys/finance/insertFinance',
        data:params
    })
}

export const updateFinance=(params)=>{
    return axios({
        method:'post',
        url:'sys/finance/updateFinance',
        data:params
    })
}

export const deleteFinance=(params)=>{
    return axios({
        method:'get',
        url:'sys/finance/deleteFinance',
        params:params
    })
}


export const getMonthFinance=(params)=>{
    return axios({
        method:'get',
        url:'sys/finance/getMonthFinance',
        params:params
    })
}

export const getMonthFinance1=(params)=>{
    return axios({
        method:'get',
        url:'sys/finance/getMonthFinance1',
        params:params
    })
}

export const getExpense=(params)=>{
    return axios({
        method:'get',
        url:'sys/finance/getExpense',
        params:params
    })
}

export const insertExpense=(params)=>{
    return axios({
        method:'post',
        url:'sys/finance/insertExpense',
        data:params
    })
}

export const deleteExpense=(params)=>{
    return axios({
        method:'post',
        url:'sys/finance/deleteExpense',
        data:params
    })
}
